<?php
namespace  app\common\validate;

use think\Validate;

class Config extends Validate{

    public $rule = [
        'ckey'          => 'require',
        'cvalue'        => 'require',
        'placeholder'   => 'require',
        'label' => 'require',
    ];

    public $message = [
        'ckey.require' =>'键名必须填写',
        'cvalue.require' => '键值必须填写',
        'placeholder.require' => '提示信息不能为空',
        'label.require' => '标签名称不能为空',
    ];

    public $scene = [
        'add' => ['ckey','placeholder','label'],
        'update' => ['ckey','cvalue'],
    ];
}